package com.googlecode.afdbaccess.web.common.login;

import java.io.Serializable;
import java.security.Principal;

public class ApplicationPrincipal implements Principal, Serializable {
    private static final long serialVersionUID = 8120358511040605176L;

    private String userName;
    private long userId;
    private String displayName;
    
    public ApplicationPrincipal(String userName, long userId, String displayName) {
        this.userName = userName;
        this.userId = userId;
        this.displayName = displayName;
    }
    
    @Override
    public String getName() {
        return userName;
    }
    
    public long getUserId() {
        return this.userId;
    }
    
    public String getDisplayName() {
        return this.displayName;
    }
}
